package com.pason.onlineshop.mainshop.service.entity.query.impl;

import java.util.ArrayList;
import java.util.List;

public class QueryCondition {
	private String ModelName;
    private List<QueryParameter> parameters = new ArrayList<QueryParameter>();

    public QueryCondition() {

    }

    public QueryCondition(String modelName) {
        this.ModelName = modelName;
    }

    public QueryCondition(String modelName, List<QueryParameter> parameters) {
        this.ModelName = modelName;
        this.parameters = parameters;
    }

    public void add(QueryParameter queryParameter) {
        this.parameters.add(queryParameter);
    }

    public String getModelName() {
        return ModelName;
    }

    public List<QueryParameter> getParameters() {
        return parameters;
    }

    public void setModelName(String modelName) {
        ModelName = modelName;
    }

    public void setParameters(List<QueryParameter> parameters) {
        this.parameters = parameters;
    }
}
